package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@TableName(value = "cms_product_eva")
@Data
@Table(name = "cms_product_eva", comment = "产品评论")
public class CmsProductEva implements Serializable {
    /**
     * 产品评论ID
     */
    @TableId
    @Column(type= MySqlTypeConstant.BIGINT, comment = "产品评论ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long evaId;

    /**
     * 产品ID
     */
    @Column(comment = "产品ID")
    private Long productId;

    /**
     * 商品订单ID
     */
    @Column(comment = "商品订单ID")
    private Long productOrderId;

    /**
     * 订单详情id
     */
    @Column(comment = "订单详情id")
    private Long orderItemId;

    /**
     * 综合评分
     */
    @Column(comment = "综合评分", defaultValue = "0")
    private Integer score;

    /**
     * 商品评分
     */
    @Column(comment = "商品评分", defaultValue = "0")
    private Integer productScore;

    /**
     * 服务评分
     */
    @Column(comment = "服务评分", defaultValue = "0")
    private Integer serviceScore;

    /**
     * 物流评分
     */
    @Column(comment = "物流评分", defaultValue = "0")
    private Integer logisticsScore;

    /**
     * 评价内容
     */
    @Column(comment = "评价内容", length = 3000)
    private String info;

    /**
     * 评价图片
     */
    @Column(comment = "评价图片", length = 3000)
    private String evaImgs;

    /**
     * 商家回复
     */
    @Column(comment = "商家回复", length = 3000)
    private String businessReply;

    /**
     * 创建人
     */
    @Column(comment = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    /**
     * 修改人
     */
    @Column(comment = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @Column(comment = "修改时间", type = MySqlTypeConstant.TIMESTAMP)
    private Date updateTime;

    /**
     * 状态（-1:删除,1:正常）
     */
    @Column(comment = "删除标志（-1:删除,1:正常）", defaultValue = "1")
    private Integer status;

    private static final long serialVersionUID = 1L;

}